import { tableServiceInterface } from "@/common/interface/table.interface";
import {
  $musicSongCategoryList,
  $songCategoryListTree,
  $songCategoryDelete,
  $songCategoryUpdate,
  $songCategoryAdd,
  $songCategoryDetail,
} from "@/apis/music/songCategory/songCategory";
import {
  musicSongCategoryListInterface,
  musicSongCategoryUpdateInterface,
  musicSongCategoryAddInterface,
} from "@/apis/music/songCategory/songCategory.interface";
export default class MusicSongCategoryService implements tableServiceInterface {
  async getTable(e: musicSongCategoryListInterface): Promise<any> {
    return $musicSongCategoryList(e);
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    return $songCategoryDelete(e);
  }
  edit(e: musicSongCategoryUpdateInterface): Promise<any> {
    return $songCategoryUpdate(e);
  }
  add(e: musicSongCategoryAddInterface): Promise<any> {
    return $songCategoryAdd(e);
  }
  detail(e: string): Promise<any> {
    return $songCategoryDetail(e);
  }
  tree(data?: { status?: number }): Promise<any> {
    return $songCategoryListTree(data);
  }
}